<template>
    <div>
        <el-timeline >
            <el-timeline-item
                    v-for="(activity, index) in followData"
                    :key="index"
                    :timestamp="activity.followDate">
                {{activity.followWork}}
            </el-timeline-item>
        </el-timeline>
    </div>
</template>

<script>
    import {getProjectFollow}from '@/api/projectApi'
    export default {
        props: {
            params: {
                type: Object,
                default () {
                    return {}
                }
            }
        },
        data(){
            return {
                followData:[]
            }
        },
        mounted() {
            getProjectFollow({pkId:this.params.pkId}).then(res => {
                this.followData=res.data.data
                console.log(this.followData,888)
            }).catch(e => {
                console.log(e,555)

                this.$message.error({
                    message: '抱歉，操作遇到异常，请重试或联系管理员处理'
                })
            })
        }
    }
</script>

<style scoped>

</style>
